
# 作业
# s = "hello world ,my name is ass,I am 25 years old "
# data = s.find('is')
# print(data)
# name = s.find('.')
# print(name)
# data_name = s[data+3:name]
# print(data_name)

# cars = {'BMW':88,'benchi':90,'tesila':99}
# ims = cars.items()
# print(ims)
# print(type(ims))
# print(list(ims))
# print(list(ims)[1])

# pop
# print(cars.pop('tesila'))

# setdefault()

# print(cars.setdefault('baoshijie',92))
# print(cars.get('aodi',100))

# info = {'age':12,'shengming':True,'name':'ass'}
# print(info['name'])
# print(info['shengming'])
# # print(info['xxxx'])
# valuee = info.setdefault('xxx')
# print(valuee)

# for i in info.keys():
#     print(i)


#集合
# set = {1,2,3,4,1,3,4,(1,2,3,4),7}
# print({1,2,3,4,1,3,4,(1,2,3,4),7})

# print({{1,2,3,4}})
#print({{'name':'ass','age':18}})
#print({[1,2,3,4,5,6]})
#print({1,2,3,4,5})
#print({'name':'ass','age':18})
#print([1,2,3,4,5,6])
#print({1,2,3,4,4,(4,2,4),0})